#include <iterator>
#include <iostream>
#include <vector>
using namespace std ;

int n[10] ;

int main ( )
{
	vector<int> vi ( 10, 0 ) ;
	ostream_iterator<int> out(cout, " ") ;
	vector<int>::iterator i = vi.begin ( ) ;
	*i = 47 ;
	copy(vi.begin(), vi.end(), out) ;
	cout<< endl ;

	copy(n, n+10, back_inserter(vi));
	*i = 55 ;

	copy(vi.begin(), vi.end(), out) ;
	cout<< endl ;

	return 0 ;
}
